import Vue from 'vue';
import { logOperate } from './utils/index';

if (process.env.NODE_ENV == 'production') {
  Vue.config.errorHandler = function(err, vm, info) {
    let { message, stack } = err;
    let params = {
      message,
      stack,
      info
    };
    logOperate(params);
  };
}
